use simple_excel_writer as excel;
use excel::*;
pub fn new_excel(){
    let username:String = std::env::var_os("USERNAME").unwrap().into_string().unwrap();
    let mut wb: Workbook = Workbook::create(format!("C:/Users/{}/Desktop/新建Excel表.xlsx",username).as_str());
    let mut sheet: Sheet = wb.create_sheet("Sheet0");
    wb.write_sheet(&mut sheet, |sheet_writer| {
        let sw: &mut SheetWriter = sheet_writer;
        sw.append_row(row!["Input"])
    })
    .expect("write excel error!");
    wb.close().expect("close excel error!");
}